import React from 'react';
import { useAuth } from '../contexts/AuthContext';

const HomePage = () => {
    const { currentUser } = useAuth();

    return (
        <div style={{ padding: '20px', textAlign: 'center' }}>
            <h1>Welcome to the Hospital Management System</h1>
            {currentUser ? (
                <p>You are logged in as {currentUser.username} ({currentUser.email}).</p>
            ) : (
                <p>Please log in or register to continue.</p>
            )}
        </div>
    );
};

export default HomePage; 